package com.yc.baseapi;

import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;

public class TestWeakReference {

	public void m1() {
		WeakReference<String>[] array = new WeakReference[1];
		array[0] = new WeakReference<String>(new String("a"));
//		WeakReference<String>[] array2 = {new WeakReference<String>(new String("a")), new WeakReference<String>(new String("b"))};
		
		List<WeakReference<String>> list = new ArrayList<WeakReference<String>>();
		list.add(new WeakReference<String>(new String("a")));
		
		WeakReference<String> wr = new WeakReference<String>(new String("aaa"));
		
	}
	
	
}
